<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
     <meta content="telephone=no" name="format-detection" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable = no"/>
    <title>店铺收藏-{$webseting.web_title}</title>
    <link href="__PUBLIC__/wap/css/rest.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/user.css"  rel="stylesheet">
</head>
<body id="body">
    <!--绑定头部-->    
 <include file="Public/binding_head"/>
    <!--绑定头部-->
    <header id="header" class="u-header clearfix">
        <div class="u-hd-left f-left">
            <a href="{:U('wap/member/index')}" class="J_backToPrev"><span class="u-icon-px i-hd-back"></span></a>
        </div>
        <div class="u-hd-tit"><span>收藏</span></div>
    </header>
    <div class="common-wrapper">
        <ul class="concern-tab">
            <li ><a href="{:U('wap/collect/index')}">关注商品({$count.goods})</a></li>
            <li class="curr"><a href="###">关注店铺({$count.shops})</a></li>
        </ul>
        <div class="f-nei">
            <ul class="concern-con initHeight more_html">
                <volist name="list" id="vo" >
                <li>
                    <a class="" href="{:U('wap/Shop/shopdetail',array('id'=>$vo['shop_id']))}">
                        <span class="p-img"><img src="{:U('wap/index/get_thumbs',array('auto'=>64))}?img={$vo.logo}" alt=""></span>
                        <span class="p-name">{$vo.shop_name}</span>
                        <span class="s-concern">
                            <s><b style="width:{$vo.evaluation_good_star}%"></b></s>
                            <span>{$vo.collect}人关注</span>
                        </span>
                    </a>
                </li>
               </volist> 
                
            </ul>
        </div>
    </div>
    <div class="b_q">
        <div class="fm-footer-copyright get_more">
            <if condition="$count['shops'] gt 10 && count($list) eq 10">
                  加载更多
              <else/>  
                 无更多数据
            </if>
        </div>
    </div>
     <input type="hidden" name="p" value="2" />
       <include file="Public/wap_javascript" />
         <!--微信分享-->    
 <include file="Public/share_weixin" />
 
 <script type="text/javascript">
   var  binding_is_check=0;// 重复再次弹出 1是 0否
   var  binding_page='collect_shop';// //当前页面名称 不可重复
</script>  
         <!--绑定-->    
 <include file="Public/binding_phone"/>
    <!--绑定-->

    <script type="text/javascript">
   $(function(){
     $(".get_more").click(function(){
        get_more();
     });

   }); 
   function get_more(){
     var p=$("input[name='p']").val();
           $.ajax({ 
            url: "{:U('wap/collect/shop_collect')}",
            type:'post',
            data: {p:p},
            dataType: 'json',
            success: function(data){
              //console.log(data);
               var con=1;
              if(data){
                var option='';
                 $.each(data, function(i, value) {
                //this指向当前元素
                //i表示Array当前下标
                //value表示Array当前元素
                 option=option+'<li>'
                +'<a class="" href="<?php echo U('wap/Shop/shopdetail'); ?>?id='+value.shop_id+'">'
                +'<span class="p-img">'
                +'<img src="<?php echo U('wap/index/get_thumbs',array('auto'=>64)); ?>?img='
                +value.logo+'" alt=""></span>'
                +'  <span class="p-name">'+value.shop_name+'</span>'
                +'   <span class="s-concern">'
                +'       <s><b style="width:'+value.evaluation_good_star+'%"></b></s>'
                +'     <span>'+value.collect+'人关注</span>'
                +'    </span>'
                +'  </a>'
                +'</li>';
                    con++;
                 });
                 $('.more_html').append(option);
                 $("input[name='p']").val(parseInt(p)+1);
              }
              if(con<10){
                 $('.get_more').html('无更多数据');
              }
            }
           });
   }
</script>
</body>
</html>